import request from '@/utils/request'

// 查询提现账号列表
export function listWithdrawalAccount(query) {
  return request({
    url: '/withdrawal/withdrawalAccount/list',
    method: 'get',
    params: query
  })
}

// 查询提现账号详细
export function getWithdrawalAccount(id) {
  return request({
    url: '/withdrawal/withdrawalAccount/' + id,
    method: 'get'
  })
}

// 新增提现账号
export function addWithdrawalAccount(data) {
  return request({
    url: '/withdrawal/withdrawalAccount',
    method: 'post',
    data: data
  })
}

// 修改提现账号
export function updateWithdrawalAccount(data) {
  return request({
    url: '/withdrawal/withdrawalAccount',
    method: 'put',
    data: data
  })
}

// 删除提现账号
export function delWithdrawalAccount(id) {
  return request({
    url: '/withdrawal/withdrawalAccount/' + id,
    method: 'delete'
  })
}
